package com.wx_shop.web.houtai.Controller;


import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;


@Controller
@RequestMapping("/text1")
public class textcontroller {

    @RequestMapping("login")
    @ResponseBody
    public List<Map<String,String>> login() {
        Map<String, String> hashMap = new HashMap<>();
        hashMap.put("msg", "登录成功");
        List list = new ArrayList<Map<String,String>>();
        list.add(hashMap);
        return list;
    }

}
